package top.ddandang.blog.model.vo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>
 * 封装管理页面文章的信息
 * </p>
 *
 * @author D
 * @version 1.0
 * @date 2020/7/12 17:39
 */
@Data
@Accessors(chain = true)
public class ManageVo {

    @ApiModelProperty(value = "文章ID")
    private Integer id;

    @ApiModelProperty(value = "文章标题")
    private String title;

    @ApiModelProperty(value = "文章简要描述")
    private String description;

    @ApiModelProperty(value = "是否允许评论")
    private Boolean allowComment;

    @ApiModelProperty(value = "是否置顶")
    @TableField(fill = FieldFill.INSERT)
    private Boolean topping;

    @ApiModelProperty(value = "分类图片")
    private String image;

    @ApiModelProperty(value = "点击数")
    private int hits;

    @ApiModelProperty(value = "评论数")
    private int commentAmount;
}
